export type ItemType = {
    browser: string;
    connectionId: string;
    id: number;
    ip: string;
    os: string;
    realName: string;
    tenantId: number;
    time: string;
    userId: number;
    userName: string;
}


export interface TableParamsResType<T> {
    hasNextPage:boolean,
    hasPrevPage:boolean,
    page:number,
    pageSize:number,
    total:number,
    totalPages:number,
    items:T[]
}

type TenantListItemType = {
    label:string,
    value:number,
    host:string | null
}

export type TenantListType = TenantListItemType []


export interface StateType {
    open:boolean,
    queryForm:{
        tenantId:number | undefined,
        userName:string,
        realName:string,
    },
    tableParams:{
        page:number,
        pageSize:number,
        total:number,
    },
    columns:any[],
    tableData:ItemType[],
    tenantList:TenantListType,
    loading:boolean,
}